import java.math.BigDecimal;

// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main {
    public static void main(String[] args) {
        int width = 1080;
        System.out.println("width = " + width);
        int high = 2160;
        System.out.println("high = " + high);
        double screen = 5.99;
        System.out.println("screen = " + screen);
        double dpi = Math.sqrt( Math.pow(width, 2) + Math.pow(high, 2)) / screen;
        System.out.println("dpi = " + dpi);
        double density = dpi / 160;
        System.out.println("density = " + density);
        double dp = 1 / density;
        System.out.println("dp = " + dp);
        double px = 1 * density;
        System.out.println("px = " + px);
        double width_dp = width / density;
        System.out.println("width_dp = " + width_dp);
        double high_dp = high / density;
        System.out.println("high_dp = " + high_dp);

//        double screen1 = Math.sqrt( Math.pow(1920, 2) + Math.pow(1080, 2)) / 141;
//        System.out.println("screen1 = " + screen1);


//        double sqrt = Math.sqrt(Math.pow(1280 / 149, 2) + Math.pow(800 / 149, 2));
//        double size = new BigDecimal(String.valueOf(sqrt)).setScale(2, 4).doubleValue();
//        System.out.println("size = " + size);

    }
}

/*
    public static final double getScreenSize(Context context) {
        if (context != null) {
            Point point = getMaxWinPoint(context);
            DisplayMetrics metrics= getDisplayMetrics(context);

            double sqrt = Math.sqrt(Math.pow(point.x / metrics.xdpi, 2) + Math.pow(point.y / metrics.ydpi, 2));
            Log.i(TAG, "11111: "+sqrt);
            double size = new BigDecimal(String.valueOf(sqrt)).setScale(2, 4).doubleValue();
            Log.i(TAG, "22222   : "+size);
            return size;
        }
        return 0.0d;
    }
*/